<template>
    <Layout></Layout>
</template>
<script setup>
import Layout from './components/layoutBeta.vue'
import $eventer from '@events'
import { useRouter } from 'vue-router';
const $router = useRouter()

$eventer.$on('sys-tab-active-changed', (actName, actVo) => {
    $router.push({
        path: actVo.route,
        query: actVo.args
    })
})
$eventer.$on('sys-tab-active-updated', (actName, actVo) => {
    console.log('sys-tab-active-updated', actName, actVo)
    $router.push({
        path: actVo.route,
        query: Object.assign({}, actVo.args)
    })
}) 
</script>